{{--<style type="text/css">
    .sideMenu{  border:1px solid #ddd;  }
    .sideMenu h3{ height:32px; line-height:32px; padding-left:10px;  border-top:1px solid #e3e3e3; background:#f4f4f4; cursor:pointer;
        font:normal 14px/32px "Microsoft YaHei";
    }

    .sideMenu h3 em{ float:right; display:block; width:40px; height:32px;   background:url(/public/asserts/lib/superslide/images/icoAdd.png) 16px 12px no-repeat; cursor:pointer; }
    .sideMenu h3.on em{ background-position:16px -57px; }
    .sideMenu ul{ padding:8px 25px; color:#999; display:none;
</style>


<div class="sideMenu" style="margin:0 auto">
    <h3><em></em>文章管理</h3>
    <ul>
        <li class="list-group-ite"><i class="fa fa-list-ul"></i> <a href="/administrator/post">文章列表</a></li>
        <li class="list-group-ite"><i class="fa fa-plus"></i> <a href="/administrator/post/create">添加文章</a></li>
        <li class="list-group-ite"><i class="fa fa-list-ul"></i><a href="/administrator/postCid">分类列表</a></li>
        <li class="list-group-itm"><i class="fa fa-plus"></i> <a href="/administrator/postCid/create">添加分类</a></li>
    </ul>

    <h3 class="on"><em></em>幻灯片/焦点图系列</h3>
    <!-- 假设当前频道为“幻灯片/焦点图系列”，手动或后台程序添加titOnClassName类名（默认是'on'），相当于设置参数defaultIndex:1。若设置参数returnDefault:true，则鼠标移出.sideMen0.3秒可以返回当前频道 -->

    <ul>
        <li>淘宝首页焦点图</li>
        <li>腾讯娱乐频道焦点图</li>
        <li>腾讯电影频道焦点图</li>
        <li>网易游戏频道焦点图</li>
        <li>易迅首页焦点图</li>
    </ul>
    <h3><em></em>带按钮切换</h3>
    <ul>
        <li>淘宝首页今日活动</li>
        <li>豆瓣读书频道</li>
        <li>天猫首页品牌切换</li>
        <li>格瓦拉首页活动进行中</li>
        <li>腾讯博客图片滚动</li>
    </ul>


</div><!-- sideMenu End -->

<script type="text/javascript">
    jQuery(".sideMenu").slide({
        titCell:"h3", //鼠标触发对象
        targetCell:"ul", //与titCell一一对应，第n个titCell控制第n个targetCell的显示隐藏
        effect:"slideDown", //targetCell下拉效果
        delayTime:300 , //效果时间
        triggerTime:150, //鼠标延迟触发时间（默认150）
        defaultPlay:true,//默认是否执行效果（默认true）
        returnDefault:true //鼠标从.sideMen移走后返回默认状态（默认false）
    });
</script>--}}
<!--两种不同的风格-->

<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">

    @if($query->isMenuShow("post",$active))
    <div class="panel panel-default">
        <div class="panel-heading"  id="heading1">
            <h4 class="panel-title">
                <i class="fa fa-file-text-o"></i>
                <a data-toggle="collapse" data-parent="#accordion" href="#collapse1">
                    文章管理
                </a>
            </h4>
        </div>
        <div id="collapse1" class="panel-collapse collapse @if(isset($active) && $active == 'post') @else in @endif"  >
            <ul class="list-group">
                <li class="list-group-item"><i class="fa fa-list-ul"></i> <a href="/administrator/1/post">文章列表</a></li>
                <li class="list-group-item"><i class="fa fa-plus"></i> <a href="/administrator/post/create">添加文章</a></li>
                <li class="list-group-item"><i class="fa fa-list-ul"></i><a href="/administrator/postCid">分类列表</a></li>
                <li class="list-group-item"><i class="fa fa-plus"></i> <a href="/administrator/postCid/create">添加分类</a></li>
            </ul>
        </div>
    </div>
    @endif

        @if($query->isMenuShow("menu",$active))
    <div class="panel panel-default">
        <div class="panel-heading"  id="heading2">
            <h4 class="panel-title">
                <i class="fa fa-navicon"></i>
                <a data-toggle="collapse" data-parent="#accordion" href="#collapse2">
                    菜单管理
                </a>
            </h4>
        </div>
        <div id="collapse2" class="panel-collapse collapse @if(isset($active) && $active == 'menu') @else in @endif" >
            <ul class="list-group">
                <li class="list-group-item"><i class="fa fa-list-ul"></i><a href="/administrator/menu">菜单列表</a></li>
                <li class="list-group-item"><i class="fa fa-plus"></i> <a href="/administrator/menu/create">添加菜单</a></li>
            </ul>
        </div>
    </div>
        @endif

        @if($query->isMenuShow("system",$active))
    <div class="panel panel-default">
        <div class="panel-heading"  id="heading3">
            <h4 class="panel-title">
                <i class="fa fa-server"></i>
                <a data-toggle="collapse" data-parent="#accordion" href="#collapse3">
                    系统设置
                </a>
            </h4>
        </div>
        <div id="collapse3" class="panel-collapse collapse @if(isset($active) && $active == 'system') @else in @endif" >
            <ul class="list-group">
                <li class="list-group-item"><i class="fa fa-edit"></i> <a href="/administrator/config">网站设置</a></li>
                <li class="list-group-item"><i class="fa fa-plus"></i> <a href="/administrator/config/create">添加设置项</a></li>
            </ul>
        </div>
    </div>
     @endif

        @if($query->isMenuShow("banner",$active))
    <div class="panel panel-default">
        <div class="panel-heading"  id="heading4">
            <h4 class="panel-title">
                <i class="fa fa-file-image-o"></i>
                <a data-toggle="collapse" data-parent="#accordion" href="#collapse4">
                    轮播管理
                </a>
            </h4>
        </div>
        <div id="collapse4" class="panel-collapse collapse @if(isset($active) && $active == 'banner') @else in @endif" >
            <ul class="list-group">
                <li class="list-group-item"><i class="fa fa-list-ul"></i> <a href="/administrator/banner">轮播列表</a></li>
                <li class="list-group-item"><i class="fa fa-plus"></i> <a href="/administrator/banner/create">添加轮播</a></li>
            </ul>
        </div>
    </div>
        @endif

        @if($query->isMenuShow("ad",$active))
    <div class="panel panel-default">
        <div class="panel-heading"  id="heading5">
            <h4 class="panel-title">
                <i class="fa fa-tv"></i>
                <a data-toggle="collapse" data-parent="#accordion" href="#collapse5">
                    广告管理
                </a>
            </h4>
        </div>
        <div id="collapse5" class="panel-collapse collapse @if(isset($active) && $active == 'ad') @else in @endif" >
            <ul class="list-group">
                <li class="list-group-item"><i class="fa fa-list-ul"></i> <a href="/administrator/ad">广告列表</a></li>
                <li class="list-group-item"><i class="fa fa-plus"></i> <a href="/administrator/ad/create">添加广告</a></li>
            </ul>
        </div>
    </div>
        @endif

        @if($query->isMenuShow("recommend",$active))
    <div class="panel panel-default">
        <div class="panel-heading"  id="heading6">
            <h4 class="panel-title">
                <i class="fa fa-thumbs-o-up"></i>
                <a data-toggle="collapse" data-parent="#accordion" href="#collapse6">
                    文章推荐管理
                </a>
            </h4>
        </div>
        <div id="collapse6" class="panel-collapse collapse @if(isset($active) && $active == 'recommend') @else in @endif" >
            <ul class="list-group">
                <li class="list-group-item"><i class="fa fa-list-ul"></i> <a href="/administrator/recommend">推荐位列表</a></li>
                <li class="list-group-item"><i class="fa fa-plus"></i> <a href="/administrator/recommend/create">添加推荐位</a></li>
            </ul>
        </div>
    </div>
        @endif

        @if($query->isMenuShow("friend",$active))
    <div class="panel panel-default">
        <div class="panel-heading"  id="heading7">
            <h4 class="panel-title">
                <i class="fa fa-user-o"></i>
                <a data-toggle="collapse" data-parent="#accordion" href="#collapse7">
                    友情链接
                </a>
            </h4>
        </div>
        <div id="collapse7" class="panel-collapse collapse @if(isset($active) && $active == 'friend') @else in @endif" >
            <ul class="list-group">
                <li class="list-group-item"><i class="fa fa-list-ul"></i><a href="/administrator/friend/type/1">链接列表</a></li>
                <li class="list-group-item"><i class="fa fa-plus"></i> <a href="/administrator/friend/create/type/1">添加链接</a></li>
            </ul>
        </div>
    </div>
        @endif

        @if($query->isMenuShow("brand",$active))
    <div class="panel panel-default">
        <div class="panel-heading"  id="heading8">
            <h4 class="panel-title">
                <i class="fa fa-shopping-bag"></i>
                <a data-toggle="collapse" data-parent="#accordion" href="#collapse8">
                    品牌推荐
                </a>
            </h4>
        </div>
        <div id="collapse8" class="panel-collapse collapse @if(isset($active) && $active == 'brand') @else in @endif" >
            <ul class="list-group">
                <li class="list-group-item"><i class="fa fa-list-ul"></i> <a href="/administrator/friend/type/2">品牌列表</a></li>
                <li class="list-group-item"><i class="fa fa-plus"></i> <a href="/administrator/friend/create/type/2">添加品牌</a></li>
            </ul>
        </div>
    </div>
        @endif

        @if($query->isMenuShow("media",$active))
    <div class="panel panel-default">
        <div class="panel-heading"  id="heading9">
            <h4 class="panel-title">
                <i class="fa fa-internet-explorer"></i>
                <a data-toggle="collapse" data-parent="#accordion" href="#collapse9">
                    自媒体推荐
                </a>
            </h4>
        </div>
        <div id="collapse9" class="panel-collapse collapse @if(isset($active) && $active == 'media') @else in @endif" >
            <ul class="list-group">
                <li class="list-group-item"><i class="fa fa-list-ul"></i> <a href="/administrator/friend/type/3">自媒体列表</a></li>
                <li class="list-group-item"><i class="fa fa-plus"></i> <a href="/administrator/friend/create/type/3">添加自媒体</a></li>
            </ul>
        </div>
    </div>
        @endif

        @if($query->isMenuShow("imgfriend",$active))
    <div class="panel panel-default">
        <div class="panel-heading"  id="heading10">
            <h4 class="panel-title">
                <i class="fa fa-user-o"></i>
                <a data-toggle="collapse" data-parent="#accordion" href="#collapse10">
                    图片型友链
                </a>
            </h4>
        </div>
        <div id="collapse10" class="panel-collapse collapse @if(isset($active) && $active == 'imgfriend') @else in @endif" >
            <ul class="list-group">
                <li class="list-group-item"><i class="fa fa-list-ul"></i> <a href="/administrator/friend/type/4">友链列表</a></li>
                <li class="list-group-item"><i class="fa fa-plus"></i> <a href="/administrator/friend/create/type/4">添加友链</a></li>
            </ul>
        </div>
    </div>
        @endif

        @if($query->isMenuShow("hotcompany",$active))
            <div class="panel panel-default">
                <div class="panel-heading"  id="heading16">
                    <h4 class="panel-title">
                        <i class="fa fa-user-o"></i>
                        <a data-toggle="collapse" data-parent="#accordion" href="#collapse16">
                            热门企业
                        </a>
                    </h4>
                </div>
                <div id="collapse16" class="panel-collapse collapse @if(isset($active) && $active == 'hotcompany') @else in @endif" >
                    <ul class="list-group">
                        <li class="list-group-item"><i class="fa fa-list-ul"></i> <a href="/administrator/friend/type/5">企业列表</a></li>
                        <li class="list-group-item"><i class="fa fa-plus"></i> <a href="/administrator/friend/create/type/5">添加企业</a></li>
                    </ul>
                </div>
            </div>
        @endif

        @if($query->isMenuShow("tag",$active))
    <div class="panel panel-default">
        <div class="panel-heading"  id="heading11">
            <h4 class="panel-title">
                <i class="fa fa-tag"></i>
                <a data-toggle="collapse" data-parent="#accordion" href="#collapse11">
                    标签管理
                </a>
            </h4>
        </div>
        <div id="collapse11" class="panel-collapse collapse @if(isset($active) && $active == 'tag') @else in @endif" >
            <ul class="list-group">
                <li class="list-group-item"><i class="fa fa-edit"></i> <a href="/administrator/tag">标签管理</a></li>
            </ul>
        </div>
    </div>
        @endif


        @if($query->isMenuShow("page",$active))
    <div class="panel panel-default">
        <div class="panel-heading"  id="heading12">
            <h4 class="panel-title">
                <i class="fa fa-money"></i>
                <a data-toggle="collapse" data-parent="#accordion" href="#collapse12">
                    投资直通车编辑
                </a>
            </h4>
        </div>
        <div id="collapse12" class="panel-collapse collapse @if(isset($active) && $active == 'page') @else in @endif" >
            <ul class="list-group">
                <li class="list-group-item"><i class="fa fa-edit"></i> <a href="/edit" target="_blank">编辑页面</a></li>
                <li class="list-group-item"><i class="fa fa-list-ul"></i> <a href="/administrator/page" >单页列表</a></li>
            </ul>
        </div>
    </div>
            @endif


        @if($query->isMenuShow("member",$active))
            <div class="panel panel-default">
                <div class="panel-heading"  id="heading13">
                    <h4 class="panel-title">
                        <i class="fa fa-user-o"></i>
                        <a data-toggle="collapse" data-parent="#accordion" href="#collapse13">
                            会员管理
                        </a>
                    </h4>
                </div>
                <div id="collapse13" class="panel-collapse collapse @if(isset($active) && $active == 'member') @else in @endif" >
                    <ul class="list-group">
                        <li class="list-group-item"><i class="fa fa-user-o"></i> <a href="/administrator/member" >会员列表</a></li>
                    </ul>
                </div>
            </div>
        @endif

        @if($query->isMenuShow("manager",$active))
            <div class="panel panel-default">
                <div class="panel-heading"  id="heading14">
                    <h4 class="panel-title">
                        <i class="fa fa-user-o"></i>
                        <a data-toggle="collapse" data-parent="#accordion" href="#collapse14">
                            后台管理员
                        </a>
                    </h4>
                </div>
                <div id="collapse14" class="panel-collapse collapse @if(isset($active) && $active == 'manager') @else in @endif" >
                    <ul class="list-group">
                        <li class="list-group-item"><i class="fa fa-user-o"></i> <a href="/administrator/manager" >管理列表</a></li>
                    </ul>
                </div>
            </div>
        @endif

        @if($query->isMenuShow("message",$active))
            <div class="panel panel-default">
                <div class="panel-heading"  id="heading15">
                    <h4 class="panel-title">
                        <i class="fa fa-money"></i>
                        <a data-toggle="collapse" data-parent="#accordion" href="#collapse15">
                            留言管理
                        </a>
                    </h4>
                </div>
                <div id="collapse15" class="panel-collapse collapse @if(isset($active) && $active == 'message') @else in @endif" >
                    <ul class="list-group">
                        <li class="list-group-item"><i class="fa fa-list-ul"></i> <a href="/administrator/message" >留言列表</a></li>
                    </ul>
                </div>
            </div>
        @endif









</div>

